//
//  HttpVideoDownload.h
//  IM_LearningGYDF
//
//  Created by gydf on 16/3/21.
//  Copyright © 2016年 mac. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef void (^ProgressBlock) (unsigned long long downloadData,unsigned long long fileSize,double downSpeed);
@interface HttpVideoDownload : NSObject
@property (nonatomic,strong) NSMutableArray *urlArr;
@property (nonatomic,strong) NSMutableArray *progressArr;;
@property (nonatomic,strong) NSMutableArray *requestArr;
@property (nonatomic,copy) ProgressBlock myBlock;
@property (nonatomic,strong) NSURLSessionDownloadTask *downloadTask;

+ (HttpVideoDownload *)defaultDownload;
- (void)startWithURL:(NSString *)url ;
- (void)pauseWithURL:(NSString *)url ;
- (void)resumeWithURL:(NSString *)url;
- (void)downloadDataFromUrl:(NSString *)url progress:(ProgressBlock)block;
@end
